<?php

declare(strict_types=1);

namespace Plugin\Attractions\Commerce\Model\Commerce_qualification;

use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id 主键ID
 * @property int $merchant_id 商户ID
 * @property int $qualification_type 资质类型：1-食品经营许可证，2-卫生许可证，3-消防许可证，4-其他证书
 * @property string $qualification_name 资质名称
 * @property string $qualification_id 资质证书号
 * @property string $issuing_authority 发证机关
 * @property string $issue_date 发证日期
 * @property string $expiry_date 有效期至
 * @property string $qualification_file 资质文件路径
 * @property string $remark 备注
 */
class CommerceQualification extends Model
{
    public bool $timestamps = false;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'commerce_qualification';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'merchant_id', 'qualification_type', 'qualification_name', 'qualification_id', 'issuing_authority', 'issue_date', 'expiry_date', 'qualification_file', 'remark'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'merchant_id' => 'integer', 'qualification_type' => 'integer'];
}
